package com.youdianda.service;

import com.youdianda.dto.YddCatePageDTO;
import com.youdianda.entity.YddCate;
import com.baomidou.mybatisplus.extension.service.IService;
import com.youdianda.result.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

/**
* @author xliu
* @description 针对表【ydd_cate】的数据库操作Service
* @createDate 2023-05-14 16:01:34
*/
public interface YddCateService extends IService<YddCate> {
    //查询分类详情
    public Result rowInfo(String id);
    /**
     * 分页查询
     * @param dto
     * @return
     */
    public Result list(YddCatePageDTO dto);
    /**
     * 新增分类
     * @param yddCate
     * @return
     */
    public Result add(YddCate yddCate);
    /**
     * 删除分类
     * @return
     */
    public Result del(String id);
    /**
     * 修改数据
     * @return
     */
    public Result update(YddCate yddCate);
    /**
     * 分类列表-全部
     * @param
     * @return
     */
    public Result all();
}
